/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.concurrent.TimeUnit;

/**
 * <p>Project: jse2302 - TimeUtilDemo
 * <p>Powered by webrx On 2023-06-30 11:39:51
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class TimeUtilDemo {
    public static void main(String[] args) {
        System.out.println(1000*60*60*24);
        System.out.println(TimeUnit.DAYS.toMillis(1));

        long ss = TimeUnit.HOURS.toSeconds(10);
        System.out.println(ss);

        try{
            TimeUnit.HOURS.sleep(10);
            TimeUnit.DAYS.sleep(1);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
